package com.coffee.netty;

import io.netty.channel.ChannelHandler;

/**
 * Codec interface.
 * @author songkui
 * @since 2024/7/30
 */
public interface RpcCodec {

    /**
     * Create an decoder instance.
     * @return pack Decoder handler
     */
    ChannelHandler packDecoder();

    /**
     * Create an encoder instance.
     *
     * @return new encoder instance
     */
    ChannelHandler encoder();

    /**
     * Create an decoder instance.
     *
     * @return new decoder instance
     */
    ChannelHandler decoder();


}
